package com.example.demo.service;

import com.example.demo.dto.CourseInfo;
import com.example.demo.dto.CourseVo;
import com.example.demo.entity.Course;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CourseService {
    int insertCourse(CourseVo course);
    int deleteCourseById(int id);
    int updateCourse(Course course);
    Course selectCourseById(int id);
    List<Course> selectAllCourses();
    List<CourseInfo> getAllCourses();
    CourseInfo getCourseById(@Param("id") int id);
}
